package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.*;

import java.time.LocalDate;

public interface OrdersService {


    OrderSubmitVO submit(OrdersSubmitDTO dto);
    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    PageResult getHistoryOrders(OrdersPageQueryDTO dto);

    OrderVO getOrderDetails(Long id);

    void cancleOrder(Long id) throws Exception;

    void repetition(Long id);

    PageResult search(OrdersPageQueryDTO dto);

    OrderStatisticsVO statistics();

    void confirm(OrdersConfirmDTO dto);

    void rejection(OrdersRejectionDTO dto);

    void cancle(OrdersCancelDTO dto);

    void delivery(Long id);

    void complete(Long id);

    void reminder(Long id);
}
